'''
Description: QT线程模块
Author: HowsenFisher
Date: 2021-04-01 22:22:04
LastEditTime: 2021-04-11 01:50:06
LastEditors: liutq
Reference: 
'''
from PyQt5.QtCore import QThread


class thread(QThread):
    '''
    @description: thread类：继承自QThread
    @param  {*}
    @return {*}
    @param {*} self
    @param {*} target
    '''
    def __init__(self,target):
        # 父类的构造函数
        super(thread,self).__init__()
        # 目标函数
        self.f = target
    
    '''
    @description: 目标函数执行（真正执行调用start，会执行run中内容）
    @param  {*}
    @return {*}
    @param {*} self
    '''
    def run(self):
        self.f()